home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Development Tools & Languages / Dylan Related / Mindy / Mindy 1.2 - portable sources / interp / interp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-15  |  1.9 KB  |  55 lines  |  [TEXT/ttxt]

  1. /**********************************************************************\
  2. *
  3. *  Copyright (c) 1994  Carnegie Mellon University
  4. *  All rights reserved.
  5. *  
  6. *  Use and copying of this software and preparation of derivative
  7. *  works based on this software are permitted, including commercial
  8. *  use, provided that the following conditions are observed:
  9. *  
  10. *  1. This copyright notice must be retained in full on any copies
  11. *     and on appropriate parts of any derivative works.
  12. *  2. Documentation (paper or online) accompanying any system that
  13. *     incorporates this software, or any part of it, must acknowledge
  14. *     the contribution of the Gwydion Project at Carnegie Mellon
  15. *     University.
  16. *  
  17. *  This software is made available "as is".  Neither the authors nor
  18. *  Carnegie Mellon University make any warranty about the software,
  19. *  its performance, or its conformity to any specification.
  20. *  
  21. *  Bug reports, questions, comments, and suggestions should be sent by
  22. *  E-mail to the Internet address "gwydion-bugs@cs.cmu.edu".
  23. *
  24. ***********************************************************************
  25. *
  26. * $Header: interp.h,v 1.7 94/10/05 21:02:31 nkramer Exp $
  27. *
  28. \**********************************************************************/
  29.  
  30.  
  31. extern obj_t obj_ComponentClass;
  32.  
  33. struct component {
  34.     obj_t class;
  35.     int length;
  36.     obj_t debug_name;
  37.     int frame_size;
  38.     obj_t mtime;
  39.     obj_t source_file;
  40.     obj_t debug_info;
  41.     int n_constants;
  42.     obj_t constant[1];
  43. };
  44.  
  45. #define COMPONENT(o) obj_ptr(struct component *, o)
  46.  
  47. extern void set_byte_continuation(struct thread *thread, obj_t component);
  48. extern void do_byte_return(struct thread *thread, obj_t *old_sp, obj_t *vals);
  49. extern obj_t make_component(obj_t debug_name, int frame_size, obj_t mtime,
  50.                 obj_t src_file, obj_t debug_info, int constants,
  51.                 int bytecode_len);
  52.  
  53. extern void interpret_byte(int byte, struct thread *thread);
  54. extern void interpret_next_byte(struct thread *thread);
  55.